public class KeMing {
    int a;
    String b = "123456";
    private void zugeshuchu(){
        int[] c = new int[b.length()];
        for (int i = 0; i < b.length() ; i++){
            char ch = b.charAt(i);
            c[i] = Character.getNumericValue(ch);
            System.out.print(c[i] + " ");
        }
    }
    public static void main(String[] args) {
        KeMing km = new KeMing();
        km.zugeshuchu();
    }
}
